package Launcher;

import sort.InsertionSort;
import sort.MergeSort;

public class Launcher {
	public static void main(String[] args){
		//insertion sort
		InsertionSort ins = new InsertionSort();
		ins.printList(ins.insertionSort(getList()));
		//merge sort
		MergeSort mergeSort = new MergeSort();
		mergeSort.printList( mergeSort.mergeSort( getList() ) );
	}

	private static long[] getList() {
		long[] list = new long[9];
		list[0] = 5;
		list[1] = 3;
		list[2] = 2;
		list[3] = 9;
		list[4] = 1;
		list[5] = 6;
		list[6] = 4;
		list[7] = 7;
		list[8] = 8;
		return list;
	}
}
